/* 
 * Author: Alexander Rauser, arauser.org
 * Date: August 2008
 * Copyright: 2008
 * Licensed under Creative Commons Attribution 3.0 Unported
 */
 
package org.arauser.uploader.controller
{	
	import org.puremvc.as3.interfaces.*;
	import org.puremvc.as3.patterns.command.*;
	import org.puremvc.as3.patterns.observer.*;
	
	import org.arauser.uploader.view.*;
	
	/**
	 * Create and register Mediators with the View.
	 */
	public class ViewPrepCommand extends SimpleCommand
	{
		override public function execute( note : INotification ) : void {
			// We only have one view when the application starts, which is the main view.
			var app:Uploader = note.getBody() as Uploader;
			facade.registerMediator( new ApplicationMediator( app ) );
		}
	}
}